package com.mathew.spring.appsp.rep;

import java.util.List;
import com.mathew.spring.appsp.entity.User;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.repository.CrudRepository;

@Configuration
public interface UserRepository extends CrudRepository<User,Integer>{
    List<User> findByEmail(String email);
    void deleteByEmail(String email);
}
